package com.chuangke.common.http.client;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class HttpPoolProperties {

	@Value("${http.maxConnectionTotal}")
	private int maxConnectionTotal;
	@Value("${http.routeMaxCount}")
	private int routeMaxCount;
	@Value("${http.retryCount}")
	private int retryCount;
	@Value("${http.connectionTimeOut}")
	private int connectionTimeOut;
	@Value("${http.readTimeOut}")
	private int readTimeOut;
	@Value("${http.connectionQequestTimeOut}")
	private int connectionQequestTimeOut;
	@Value("${http.connectionIdleTimeOut}")
	private int connectionIdleTimeOut;
	@Value("${http.defaultKeepAliveTimeMillis}")
	private int defaultKeepAliveTimeMillis;

	public int getMaxConnectionTotal() {
		return maxConnectionTotal;
	}

	public void setMaxConnectionTotal(int maxConnectionTotal) {
		this.maxConnectionTotal = maxConnectionTotal;
	}

	public int getRouteMaxCount() {
		return routeMaxCount;
	}

	public void setRouteMaxCount(int routeMaxCount) {
		this.routeMaxCount = routeMaxCount;
	}

	public int getRetryCount() {
		return retryCount;
	}

	public void setRetryCount(int retryCount) {
		this.retryCount = retryCount;
	}

	public int getConnectionTimeOut() {
		return connectionTimeOut;
	}

	public void setConnectionTimeOut(int connectionTimeOut) {
		this.connectionTimeOut = connectionTimeOut;
	}

	public int getReadTimeOut() {
		return readTimeOut;
	}

	public void setReadTimeOut(int readTimeOut) {
		this.readTimeOut = readTimeOut;
	}

	public int getConnectionQequestTimeOut() {
		return connectionQequestTimeOut;
	}

	public void setConnectionQequestTimeOut(int connectionQequestTimeOut) {
		this.connectionQequestTimeOut = connectionQequestTimeOut;
	}

	public int getConnectionIdleTimeOut() {
		return connectionIdleTimeOut;
	}

	public void setConnectionIdleTimeOut(int connectionIdleTimeOut) {
		this.connectionIdleTimeOut = connectionIdleTimeOut;
	}

	public int getDefaultKeepAliveTimeMillis() {
		return defaultKeepAliveTimeMillis;
	}

	public void setDefaultKeepAliveTimeMillis(int defaultKeepAliveTimeMillis) {
		this.defaultKeepAliveTimeMillis = defaultKeepAliveTimeMillis;
	}

}
